package com.zsummer.demo.cloudseataservice1.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zsummer
 * @since 2022/2/14
 */
@FeignClient(value = "cloud-seata-service2")
public interface StockService {

    @GetMapping("/stock/deduct")
    public String deductStock(@RequestParam("productName") String productName, @RequestParam("orderCnt") int count);
}
